//
//  NSDate+Utilities.h
//  SinaWeather
//
//  Created by suruiqiang on 6/23/11.
//  Copyright 2011 huanghe. All rights reserved.
//

#import <Foundation/Foundation.h>
#define D_MINUTE	60
#define D_HOUR		3600
#define D_DAY		86400
#define D_WEEK		604800
#define D_YEAR		31556926

@interface NSDate (Utilities)
+(NSString*)convertStringDate:(NSString*)sourceString withFormat:(NSString*)dateFormat fromTimeZone:(NSTimeZone*)sourceTimeZone toTimeZone:(NSTimeZone*)destTimeZone;
+(NSDate*)dateWithString:(NSString*)dateString withFormat:(NSString*)dateFormat;
+(NSString*)relativeWithString:(NSString*)dateString;
+ (NSString *)relativeFormattedString:(NSDate*)desData;
+(NSString*)getWeekDay:(NSDate*)date;
-(NSString*)getWeekDay;
//-(NSString*)getAbbreWeekDay;//:(NSDate*)aSysDate;
//- (NSInteger) daysAfterOrBeforeDate;
//
//-(NSString*)getUpdateDay;


@property(readonly)NSInteger year;
@property(readonly)NSInteger month;
@property(readonly)NSInteger day;
@property(readonly)NSInteger hour;
@property(readonly)NSInteger minute;
@property(readonly)NSInteger second;
//@property(readonly)NSInteger weekDayIndex;
@end